﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Lapv.Master" AutoEventWireup="true" CodeBehind="PermissionAdd.aspx.cs" Inherits="Lapv.Account.PermissionAdd" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="header" runat="server">
    <%--menu tab  --%>  
    <div class="tabnav">
        <ul>
            <li><a href="<%= domain%>Account/AccMN.aspx" class="list_t">D/S Tài khoản</a></li>
            <li><a href="<%= domain%>Account/AccAdd.aspx" class="add_t">Thêm Tài khoản</a></li>
            <li><a href="<%= domain%>Account/RoleAdd.aspx" class="list_t">Thêm role</a></li>
            <li class="active"><a href="<%= domain%>Account/PermissionAdd.aspx" class="add_t">Thêm Permission</a></li>       
        </ul>
        <div class="clr">
        </div>
    </div>
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="content" runat="server">
 <div class="form form1">
        <div runat=server id="id">
            <span>Mã quyền</span>
            <asp:TextBox ID="txtId" runat="server"></asp:TextBox>
        </div>
        <div>
            <span>Tên Quyền</span>
            <div>
                <asp:TextBox ID="txtName" runat="server"></asp:TextBox>
            </div>
        </div>
        <div>
            <span>Nội dung</span>
            <div>
                <asp:TextBox ID="txtContent" runat="server" TextMode=MultiLine></asp:TextBox>
            </div>
        </div> 
        <div>
            <span>List page</span>
            <div>
                <asp:CheckBoxList ID="chkPermission" runat="server" />
            </div>
        </div>  
        <div>
            <span></span>
            <div>
                <asp:Button ID="bt_luu" runat="server" Text="Button" OnClick="btnEdit_Click" />
                <input type="button" value="Hủy" />
            </div>
        </div>
    </div>
      <div class="form form2">
         <asp:DataGrid   CssClass="table1" runat="server" ID="dtgrid" AutoGenerateColumns="false" 
            OnItemCommand="functionGridNews"> 
            <Columns>
                <asp:TemplateColumn HeaderText="Mã quyền" ItemStyle-Width="60">
                    <itemtemplate>
                        <asp:Label runat="server" ID="lb_id" Text='<%# Eval("id") %>' />
                    </itemtemplate>
                </asp:TemplateColumn>
                <asp:TemplateColumn HeaderText="Tên quyền" ItemStyle-Width="300">
                    <itemtemplate>
                        <%# Eval("name") %>
                     </itemtemplate>
                </asp:TemplateColumn>
                <asp:TemplateColumn HeaderText="Nội dung" ItemStyle-Width=" ">
                    <itemtemplate>
                    <%# Eval("Description")%>
                </itemtemplate>
                 </asp:TemplateColumn>
                <asp:TemplateColumn HeaderText="Sửa" ItemStyle-Width="30">
                    <itemtemplate>
                     <asp:LinkButton runat="server" ID="lbt_edit" CommandName="edit" CommandArgument='<%# Eval("id") %>'
                        Text="Sửa"><img src="../styles/imgs/edit.gif " /></asp:LinkButton>
                    </itemtemplate>
                </asp:TemplateColumn>
                <asp:TemplateColumn HeaderText="Xóa" ItemStyle-Width="30">
                    <itemtemplate>
                    <asp:ImageButton OnClick="btnDelete_Click" ID="btnDelete" ImageUrl="~/styles/imgs/delete.gif"
                        runat="server" BorderWidth="0" CommandArgument='<%# Eval("Id") %>' OnClientClick="return confirm('Xóa tin vĩnh viễn?')" />
             
                </itemtemplate>
                </asp:TemplateColumn>
            </Columns>
        </asp:DataGrid>
</asp:Content>
